{header}

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function RowHighlightByCheckBox(row_id, ch_id, normal_class, highlight_class, row) { 
	
	var row = document.getElementById(row_id);
	var ch = document.getElementById(ch_id);
	
	if(row) {
		if(ch.checked == true) { ch.checked = false; }
		else                   { ch.checked = true; }
	}
	
	if(ch.checked == true) { row.className = highlight_class; } 
	else                   { row.className = normal_class; }
}


function OverColor(obj, new_class, highlight_class) { 
	if(obj.className != highlight_class) {
		obj.className = new_class;
	}
}


function Highlight(obj, def_class, new_class) { 
	if(obj.className == def_class) { obj.className=new_class; }
	else                           { obj.className=def_class; }
}

//-->
</SCRIPT>

<a href="{update_link}">update</a> |
<a href="{active_link}">active</a> |
<a href="{delete_link}">delete</a> |
<a href="javascript: document.getElementById('action_form').submit();">test</a> |

<div><br></div>

<form action="{action_link}" name="action_form" id="action_form">
<input type="hidden" name="module" value="knowledgebase">
<input type="hidden" name="page" value="kb_category">

<table border=0 width="100%" cellpadding="5" cellspacing="1" class="tdBorder">
<tr class="tdTitle">
	<td class="tdTitle"></td>
	<td>{name_msg}</td>
	<td>{description_msg}</td>
	<td>{status_msg}</td>
</tr>


<!-- 
onMouseOver="OverColor(this, 'trOver', 'trHighlight')" 
								  onMouseOut="OverColor(this, '{class}', 'trHighlight')"
								  onClick="Highlight(this, 'trOver', 'trHighlight')"
 -->


<tmpl:row>
<tr id="row_{id}" class="{class}" style="{style}" 
								  onMouseOver="OverColor(this, 'trOver', 'trHighlight')" 
								  onMouseOut="OverColor(this, '{class}', 'trHighlight')"
								  onClick="RowHighlightByCheckBox('row_{id}', 'ch_{id}', '{class}', 'trHighlight', true)"
								  onLeftClick="return false;">
									
	<td align="center" width="1">
		<!-- onChange="RowHighlightByCheckBox('row_{id}', 'ch_{id}', '{class}', 'trHighlight')" -->
		<input type="checkbox" name="ids[]" value="{id}" id="ch_{id}"
		onclick="RowHighlightByCheckBox('row_{id}', 'ch_{id}', '{class}', 'trHighlight', false)">
	</td>
	
	<tmpl:level_0>
	<td nowrap><b>{name}</b></td>
	</tmpl:level_0>
	
	<tmpl:other_level>
	<td style="padding-left: {padding}px;" nowrap>
		<img src="images/icons/join.gif" width="14" height="9"> {name}
	</td>
	</tmpl:other_level>
	
	<td width="60%">{description}</td>
	
	<td align="center">{active_img}</td>
</tr>
</tmpl:row>

</table>

</form>